package com.whfc.iot.gas.processor;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class GasUpMsgProcessorFactory {

    @Autowired
    private GasUpMsgProcessorImpl gasUpMsgProcessor;

    public GasUpMsgProcessor getMsgProcessor(int cmd) {
        GasUpMsgProcessor processor = null;
        switch (cmd) {
            default:
                processor = gasUpMsgProcessor;
        }
        return processor;
    }
}
